import axios from 'axios'
import { commonParams, ismock } from 'src/api/config'

export function getSearchTitle () {
  const url = ismock ? './static/mock/searchtitle.json' : ''
  const data = Object.assign({}, commonParams, {

  })
  return axios.get(url, {
    params: data
  }).then((res) => {
    return Promise.resolve(res.data)
  })
}
export function getDataResult (result) {
  const url = ismock ? './static/mock/getDataResult.json' : ''

  const data = Object.assign({}, commonParams, result)

  return axios.get(url, {
    params: data
  }).then((res) => {
    return Promise.resolve(res.data)
  })
}
